package com.xiaomage.view.draw5

import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.widget.LinearLayout
import kotlinx.android.synthetic.main.activity_main.*

class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        val drawText=DrawTextView(this)
        val params=LinearLayout.LayoutParams(
                LinearLayout.LayoutParams.WRAP_CONTENT,
                500
        )
        drawText.layoutParams=params
        ll_zong.addView(drawText)

        val drawText2=DrawTextView2(this)
        val params2=LinearLayout.LayoutParams(
                LinearLayout.LayoutParams.WRAP_CONTENT,
                500
        )
        drawText2.layoutParams=params2
        ll_zong.addView(drawText2)

        val drawText3=DrawTextView3(this)
        val params3=LinearLayout.LayoutParams(
                LinearLayout.LayoutParams.WRAP_CONTENT,
                500
        )
        drawText3.layoutParams=params3
        ll_zong.addView(drawText3)

        val drawText4=DrawTextView4(this)
        val params4=LinearLayout.LayoutParams(
                LinearLayout.LayoutParams.WRAP_CONTENT,
                500
        )
        drawText4.layoutParams=params4
        ll_zong.addView(drawText4)
    }
}
